#include <stdio.h>

int check_digit(int d)
{
	return d == 1 || d == 2 || d == 3 || d == 4;
}

int main()
{
	int a, b, c;
	int num;
	int count = 0;

	for (a = 1; a < 5; a++)
		for (b = 1; b < 5; b++)
			for (c = 1; c < 5; c++) {
				num = a * 100 + b * 10 + c;

				if (a != b && a != c && b != c) {
					count++;
					printf("第%d个：%d\n", count, num);
				}
			}

	return 0;
}
